package com.recipeexchange.utils

import org.apache.shiro.SecurityUtils
import com.recipeexchange.domain.User


class CommentEvaluator {

    static evaluator = {
        Long id = SecurityUtils.getSubject()?.getPrincipal()

        if (id) {
            return User.get(id)
        }
    }
}
